//
// Created by bjliuyong on 2021/6/21.
//
#include "../../include/jni/com_lemon_jvm_example_jni_JavaThread.h"
#include "../../include/common.h"

/*
 * Class:     com_lemon_jvm_example_jni_JavaThread
 * Method:    start0
 * Signature: ()V
 */
JNIEXPORT void JNICALL Java_com_lemon_jvm_example_jni_JavaThread_start0
(JNIEnv * env, jobject obj){
    INFO_PRINT("here\n");
    jclass  cls = env->GetObjectClass(obj);
    jmethodID  run_method= env->GetMethodID(cls,"run","()V");
    env->CallVoidMethod(obj,run_method);
}